function [ value_list list_count] = plugins_ParseFcn( files, file_count, section, varargin )
%PLUGINS_PARSE Summary of this function goes here
%   Detailed explanation goes here

value_list={};
property_count= nargin-3;
if property_count == 0, return; end

readKeys=cell(property_count, 3);
for i= 1:property_count
    readKeys(i, :)={section, '', varargin{i}};
end

list_count= 0;
value_list= cell(file_count, property_count);
for i= 1:file_count
    values = inifile(files{i},'read',readKeys);
    if ~isempty(values)
        list_count= list_count+ 1;
        value_list(list_count, :)= reshape(values, 1,numel(values));
    end
end

value_list= value_list(1:list_count, :);

end

function bool = isempty(obj)

bool= true;
    switch true
        case iscell(obj),
            count= numel(obj);
            obj=reshape(obj, 1, count);
            for i= 1:count
                if ~builtin('isempty', obj{i})
                    bool= false;
                    return
                end
            end
        otherwise, bool= builtin('isempty', obj);
    end
end

